﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Common.Domain.Common;

namespace RedDragon.Common.Domain.Outboundorder
{
    /// <summary>
    /// 出库单表
    /// </summary>
    [SugarTable("Outbound")]
    public class Outbound : BaseEntity
    {
        /// <summary>
        /// 出库单ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int OutboundId { get; set; }
        /// <summary>
        /// 出库单编码
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? OutboundCode { get; set; }
        /// <summary>
        /// 出库类型ID
        /// </summary>
        public int OutboundTypeId { get; set; }
        /// <summary>
        /// 仓库id
        /// </summary>
        public int WarehouseId { get; set; }
        /// <summary>
        /// 出库备注
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? OutboundDec { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? SalesNo { get; set; }
        /// <summary>
        /// 出库时间
        /// </summary>
        public DateTime? OutboundDate { get; set; }
        /// <summary>
        /// 出库状态
        /// </summary>
        public int? OutboundStatus { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? SingleMaker { get; set; }
        /// <summary>
        /// 部门ID(序号)
        /// </summary>
        public int DepartmentId { get; set; }

        /// <summary>
        /// 状态 1-新建；2-确认；3-变更
        /// </summary>
        public int IsStatus { get; set; }
        /// <summary>
        /// 是否删除 1-未删除；2-删除
        /// </summary>
        public int IsDel { get; set; }
        /// <summary>
        /// 审核状态 1-未提交；2-已审批；3-已提交
        /// </summary>
        public int AuditStatus { get; set; }
    }
}
